home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / EXT / A-E / edison10.sit / -Edison 1.0 ƒ / Edison 1.0 docs.rsrc / TEXT_128_aText.txt < prev    next >
Text File  |  1992-09-13  |  8KB  |  136 lines

  1. Edison 1.0
  2. 09/13/92
  3.  
  4. This simple application displays the following information in a tiny, relocatable window on Mac's equipped with the Power Manager (Portable, PowerBooks, Duo's, etc.):
  5.  
  6.         ‚Ä¢ digital battery voltage
  7.            ‚Ä¢ CPU speed
  8.            ‚Ä¢ AC adapter plugged or not plugged
  9.            ‚Ä¢ Charging state (hi charge or trickle)
  10.            ‚Ä¢ 2 timers which are automatically started or halted by detecting the
  11.            insertion or extraction of the AC adpater plug:
  12.                        - actual power-on-time since last charge (ie. how long
  13.                          your Mac has been in a non-sleep or non-shutdown mode.)
  14.                        - elapsed real-time since last charge
  15.  
  16. Edison does not tell you how long you have left till your battery goes dead, nor does it show the percentage of battery life remaining. I use Apple's Battery DA to help me judge these things.
  17.  
  18. Edison is freeware. It requires System 7.0, and the Power Manager to run. 
  19.  
  20. This version fixes a few bugs that were present in the previous released version (1.0b) related to disappearing display windows, and a sometimes inaccurate battery timer. It also reduces the preferred application partition size from 384K to 80K. Commands have been added to reset and pause the battery timer,  and to center the display window.
  21.  
  22. - jaime c. villacorte (internet: jaime@tcville.hac.com)
  23.  
  24. Usage
  25.  
  26. Edison is meant to be run "in the background". Place Edison or an alias of Edison in the Startup Items folder of your your System folder so it runs automatically when your computer is restarted. Move the display window to where you want it (the location will be remembered the next time you restart Edison). Leave the program running all the time, and let it quit by itself when you restart or shutdown your machine.
  27.  
  28. Displays
  29.  
  30. Edison presents information in a single, draggable window, which can be switched  to any of 4 displays. You can change from one display to another by using the commands under the Display menu, their command key equivalents, or alternatively, you can option-click within the display window to switch to the next display.
  31.  
  32. There's a Move to Middle menu item (command-M) under the Display which will center your display window in the middle of the screen, just in case, for some unforseen reason, your display window  has disappeared off your desktop.
  33.  
  34.  
  35. Display 1:
  36.      Voltage, CPU speed, AC adapter plug state, HI  charge state, charger error, and low battery warning.
  37.        
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. The cpu clock rate displays 16 or 1 on my PB100 (ie 16Mhz in normal mode, and 1 Mhz in rest mode).
  48.  
  49. The gray shading indicates low battery voltage. The shading also appears on the the other 3 displays.
  50.  
  51. According to Inside Mac VI, the HI charge symbol means the battery is being charged at "the hicharge rate (1.5 amps)  "
  52.  
  53. The charger error symbol (lightning bolt with a horizontal line across it) indicates (in the words of Inside Mac VI):"that the charging circuit is having trouble charging the battery".
  54.  
  55. For more detailed information, refer to the chapter on the Power Manager routines in Inside Mac volume VI.
  56.  
  57.  
  58. Display 2:
  59.      Battery-life timer.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. This is how long your machine has been on and running off the batteries. It will not include the time that the machine was in sleep mode. It also will not include the time when your machine has been shutdown.
  70.  
  71. Let's say you start Edison when your PowerBook is plugged into the AC adapter. This display should indicate 00:00:00, and stay that way. As soon as you unplug the adapter, this timer begins counting up. The timer will freeze as soon as you plug the AC adapter back in (this is assuming that your machine is on and Edison is actively running when you insert the plug). When you unplug the adapter again, the timer wil reset back to 00:00:00.
  72.  
  73. If the timer is running it can be paused by choosing the Pause Timer menu item (command-P) under the Display menu. You can resume the timer by choosing Resume Timer (command-P). (I use the Pause feature to halt my timer when the first System warning message appears on my Powrbook, warning me of low power. I later write this number down)
  74.  
  75. If you want to manually reset this timer  back to 00:00:00, choose the Reset Timer menu item (command-R) under the Display menu. I found this feature useful when I swap in a spare battery into my Powerbook, and I didn't want to plug in the adapter just to reset the timer. You can only reset the timer when the AC adapter is not plugged into the computer. 
  76.  
  77.  
  78. Display 3:
  79.      Switches back and forth between Display 1 (battery voltage) and Display 2 (battery life timer) every 2 seconds.
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89. The battery-life timer can be Paused or Reset while in this display mode.
  90.  
  91.  
  92. Display 4:
  93.          Elapsed (true time) since last charge.
  94.  
  95. This is how long it's actually been since you last unplugged your powerbook from the AC adapter.
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. When Edison is running, and it detects that you pulled out the AC adapter from the back of your portable computer, the timer resets to 00:00:00, and begins counting up. Plugging the adapter back into the Mac will freeze the timer.
  106.  
  107. This counter will keep on ticking through sleep modes and between shutdowns and should display the right time, as long as you don't change or delete Edison's preference files. The program will probably get confused and display an incorrect time if you've manually changed the clock (through the General control panel, for example) while Edison is running.
  108.  
  109. If you want to reset this timer manually back to 00d 00:00, choose the Reset Timer menu item (command-R) under the Display menu. You can only reset the timer when the AC adapter is not plugged into the computer.
  110.  
  111.  
  112. Preferences
  113.  
  114. Edison remembers the location of your display window along with other information by creating an "Edison prefs" file in your Preferences folder. If it discovers that the file "Edison prefs" is an alias, it tries to resolve it. Thus, you can keep the real "Edison prefs" in the System folder of your main drive, while keeping an alias of it (with exactly the same name) on a secondary boot-up drive (like a RAM disk for example).
  115.  
  116. If you boot from different disks (like a RAM disk and a hard disk), make sure to have just one "real" "Edison prefs" file in the Preference folder in one disk, and aliases of this file (also called "Edison prefs") in the Preference folders of the other disks. Otherwise, your window location and timers will change when you boot from one disk and then another.
  117.  
  118. Balloon Help
  119.  
  120. Whoopee! Since this was my first Mac program, I thought I'd toss a couple of balloons in here just  as an experiment. Probably not really useful to you now, since you've already read this far into this document.
  121.  
  122. Revision History
  123. 1.0 - 09/13/92
  124.     - Changed the memory's application size from 384K (the Think C default)  down to a more realistic 80K 
  125.     -  Moved all error and warning strings into the resource fork, instead of embedding them in the code.
  126.     - Created a more useful About box
  127.     - Modified some code to try to prevent the display window from disappearing (several users reported this problem), or from improperly updating when switching between displays.
  128.     - Added additional menu items to the Display menu to recenter the window.  This can bring back a display window that's disappeared.
  129.    - Added an additional menu item to Pause/Resume the battery-life timer.
  130.    - Added an additional menu item to Reset either of the two timers.
  131.     - Fixed a bug in the calculation of the battery life. Version 1.0b  tended to calculate inaccurate battery life time when one repeatedly quit and restarted the application just shortly after the machine was restarted.
  132.     - The delay (in number of ticks) between voltage samples was placed into a STR# resource. As released, it's set to 30 ticks when Edison runs in either the foreground or background.
  133.  
  134. 1.0b - 08/26/92 - Initial release.
  135.       -  It just started working. I found a name for it which didn't include the strings "PB" or "PowerBook", and heck, I even figured out how to give it an icon! I find the program useful. Hopefully others will too. I've tried it only on my PB100 running System 7.0.1 so if it doesn't work on your machine, oh well...at least you didn't pay for it :--)
  136.